package com.example.sikong.dto;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

@Getter
@Setter
public class LiveContainerResultDTO implements Serializable {

    private Integer total_count = 0;

    private Integer cursor = 0;

    private List<ContainerDTO> members;




    @Getter
    @Setter
    public static class ContainerDTO implements Serializable {
        private String rtc_channel;
        private String status;
        private String converter_name;
        private String update_ts;
        private String converter_id;

        private String  idle_timeout;

        private String  state;

        /**
         * 这个时自定义存储的字段
         * */
        private String orgSecret;

        public boolean isValidate() {
            return "200".equals(status);
        }

    }
}
